package com.ruoyi.project.business.nativedevice.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.model.BaseEntity;

/**
 * 设备入网记录对象 iot_native_device
 * 
 * @author ${author}
 * @date 2024-07-26
 */
@Data
public class NativeDevice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /**  */
    @Excel(name = "")
    private Long creatorId;

    /**  */
    @Excel(name = "")
    private Boolean isDeleted;

    /**  */
    @Excel(name = "")
    private Long lastUpdateId;

    /**  */
    private Date lastUpdateTime;

    /** 原生设备代号: esp32-wroom */
    @Excel(name = "原生设备代号: esp32-wroom")
    private String deviceCode;

    /** 设备内网ip */
    @Excel(name = "设备内网ip")
    private String innerNetIp;

    /** 设备mac */
    @Excel(name = "设备mac")
    private String mac;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("creatorId", getCreatorId())
            .append("isDeleted", getIsDeleted())
            .append("lastUpdateId", getLastUpdateId())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("deviceCode", getDeviceCode())
            .append("innerNetIp", getInnerNetIp())
            .append("mac", getMac())
            .toString();
    }
}
